package dao.impl;

import dao.UserDao;
import handler.SingleResultHandler;
import jdbc.JdbcUtil;
import pojo.User;

public class UserDaoImpl implements UserDao {
    @Override
    public User getUserByUsername(String username) {
        String sql = "select * from lesson.user where username = ?";
        return JdbcUtil.query(sql,new SingleResultHandler<User>(User.class),username);
    }
}
